package car.aistar.controller;

import car.aistar.entity.CarStatus;
import car.aistar.service.CarStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



/**
 * (CarStatus)表控制层
 *
 * @author makejava
 * @since 2020-09-30 20:17:05
 */
@RestController
@RequestMapping("carStatus")
public class CarStatusController {
    /**
     * 服务对象
     */
    @Autowired
    private CarStatusService carStatusService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public CarStatus selectOne(Long id) {
        return this.carStatusService.queryById(id);
    }

}